import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'
import router from './router'
import {createPinia} from 'pinia'
import { createPersistedState } from 'pinia-plugin-persistedstate'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
const pinia = createPinia();
pinia.use(createPersistedState({
  storage: localStorage,
}))

createApp(App).use(router).use(ElementPlus,{ locale: zhCn, }).use(pinia).mount('#app')
